package pers.agony.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pers.agony.dao.UserDao;
import pers.agony.pojo.User;
import pers.agony.service.UserService;

/**
 * @author : Agony
 * @date : Created in 6:31 下午 2021/11/5
 * @Description:
 * @Modified By:
 * @version: : 1.0
 */
@Service
public class UserServiceImpl implements UserService {

    /**
     * 通过用户名查询数据库,获取用户信息包含用户的所有角色及角色下的所有权限
     *
     * @param username
     * @return
     */

    @Autowired
    private UserDao userDao;

    @Override
    public User findUserByUsername(String username) {
        return userDao.findUserByUsername(username);
    }
}
